export type AttendanceModel = {
  id: string | number //id
  totalCount: number //列表个数
  list: any //列表
  fileList: any //附件列表
  entityId: string //流程id
  workFlowList: any
  children: any
}

const api: ApiConfig = {
  // 个人考勤记录
  attendanceUser: {
    method: 'POST',
    url: '/oa/workAttendanceRule/personalAttendanceRecords'
  },
  // 考勤补卡列表
  attendanceList: {
    method: 'GET',
    url: '/oa/attendanceSupplementaryApply/list'
  },
  // 考勤补卡-新增
  attendanceAdd: {
    method: 'POST',
    url: '/oa/attendanceSupplementaryApply/save'
  },
  // 考勤补卡-修改
  attendanceUpdate: {
    method: 'POST',
    url: '/oa/attendanceSupplementaryApply/update'
  },
  // 考勤补卡-详情
  attendanceInfo: {
    method: 'GET',
    url: '/oa/attendanceSupplementaryApply/info/:id'
  },

  // 考勤记录-部门列表
  depAttendanceList: {
    method: 'GET',
    url: '/oa/workAttendanceRule/deptList'
  },
  // 考勤记录-部门列表导出
  depAttendanceExport: {
    method: 'GET',
    url: '/oa/workAttendanceRule/deptListExport',
    responseType: 'blob'
  },
  // 导出考勤汇总
  getAllAttendanceRecordStatisticsExcel: {
    method: 'GET',
    url: '/oa/workAttendanceRule/getAllAttendanceRecordStatisticsExcel',
    responseType: 'blob'
  },
  // 考勤记录-全部列表
  allAttendanceList: {
    method: 'GET',
    url: '/oa/workAttendanceRule/allList'
  },
  // 考勤记录-全部列表导出
  aLLAttendanceExport: {
    method: 'GET',
    url: '/oa/workAttendanceRule/allListExport',
    responseType: 'blob'
  },
  // 考勤-新增 查看是否有保存权限
  checkAttendanceSupplementary: {
    method: 'POST',
    url: '/oa/attendanceSupplementaryApply/checkAttendanceSupplementary'
  },
  // 个人考勤
  getUserMonthWorkAttendanceList: {
    method: 'GET',
    url: '/oa/workAttendanceRule/getUserMonthWorkAttendanceList'
  },
  // 签到
  attendanceSignIn: {
    method: 'POST',
    url: '/oa/workAttendanceRule/qd'
  },
  // 签出
  attendanceSignOff: {
    method: 'POST',
    url: '/oa/workAttendanceRule/qc'
  },
  // 考勤规则表分页列表
  workAttendanceRule: {
    method: 'GET',
    url: '/oa/workAttendanceRule/getUserDayWorkAttendanceList'
  }
}

export default api
